﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="child-popup.aspx.cs" Inherits="MediaMonitor.admin.child_popup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript">

         function ab() {
            var pathArray1 = window.location.href.split('?');
             var final = pathArray1[1].split('=');
             document.getElementById('Img').src = "../NewCommercials/"+final[1];

             window.opener.close();
             closeParentWindow();
             
           }

           function closeParentWindow() {
               opener.closeWindowFromChild();
           }
</script>


</head>
<body onload="ab()">
    <form id="form1" runat="server">
    <div>
     <asp:Image ID="Img" runat="server" />
     </div>
    </form>
</body>
</html>
